package com.zzl.springboot.service.impl;

import com.zzl.springboot.entity.Admin;
import com.zzl.springboot.entity.AdminExample;
import com.zzl.springboot.mapper.AdminMapper;
import com.zzl.springboot.mapper.RoleMapper;
import com.zzl.springboot.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: AAAzzl
 * @description:
 * @author: zzl
 * @create: 2022-11-18 21:12
 * @version:1.0
 **/

@Service
public class AdminServiceImpl implements AdminService {

    @Resource
    private AdminMapper adminMapper;


    @Override
    public Admin getByUsername(String username) {
        return adminMapper.selectByUsername(username);
    }
}
